<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<script src="./static/js/jquery.min.js" type="text/javascript"></script> 
<script src="http://a.tbcdn.cn/apps/stargate/ac/js/proxy.js?t=<?php echo date("U"); ?>"></script>
<title>每日店铺活动</title>
</head>
<style type="text/css">
body, button, input, select, textarea {
    font: 12px/1.5 Tahoma,Helvetica,Arial,"宋体",sans-serif;
}
body, h1, h2, h3, h4, h5, h6, hr, p, ul, ol, li, button, input, textarea, form, th, td, dl, dd {
    margin: 0;
    padding: 0;
}
img {border:0;}
h1, h2, h3, h4, h5, h6 {font-size: 100%;}
ul, ol {list-style: none outside none;}
s, a {text-decoration: none;}
a {color: #484848;}
#wrpper { margin: 0 auto;  width: 950px;}
.banner {width:950px;}
.fr{float:right;}
.fl { float: left;}

.clearfix:after {
    clear: both;
    content: " ";
    display: block;
}
address, cite, dfn, em, var {
    font-style: normal;
}
.cand-cat {
    margin: 3px auto 10px;
    width: auto;
	margin-top: 15px;
}
.cand-cat ul {
    border-bottom: 2px solid #DC442F;
    overflow: hidden;
    padding: 0 5px;
}
.cand-cat ul li {
    float: left;
    margin-right: 3px;
}
.cand-cat ul li a {
    border-color: #F7F7F7 #F7F7F7 -moz-use-text-color;
    border-style: solid solid none;
    border-width: 1px 1px medium;
    color: #DC442F;
    display: block;
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    padding: 0 14px;
}
.cand-cat ul li.on a {

    background: none repeat scroll 0 0 #DC442F;
    border-color: #DC442F #DC442F -moz-use-text-color;
    border-style: solid solid none;
    border-width: 1px 1px medium;
    color: #FFFFFF;
}
.cand-cat ul li.on a, .cand-cat ul li a:hover {
    border-bottom: medium none;
    border-radius: 2px 2px 0 0;
    text-decoration: none;
}


.ju-pagination {
    color: #999999;
    font-weight: 700;
    margin-left: 22px;
	height:58px;
}
.page-bottom {
    float: right;
}
.ju-pagination a, .page-info, .page-prev, .page-start, .page-cur, .page-end {
    background-image: none !important;
    height: 28px;
    margin-right: 0 !important;
    padding: 10px 14px 0 !important;
}
.ju-pagination .page-prev, .ju-pagination .page-start {
    border-right: 0 none;
}
.ju-pagination .page-cur {
    background-color: #EFEFEF;
    border-color: #E5E5E5 -moz-use-text-color #E5E5E5 #E5E5E5;
    border-style: solid none solid solid;
    border-width: 1px 0 1px 1px;
    color: #999999;
}
.ju-pagination .page-start, .ju-pagination .page-prev {
    border: 1px solid #E5E5E5;
    width: auto;
}
.ju-pagination a, .page-info, .ju-pagination .page-prev, .ju-pagination .page-cur, .ju-pagination .page-start, .ju-pagination .page-end, .page-break {
    float: left;
}
.ju-pagination .page-prev, .ju-pagination .page-start {
    border-right: 0 none;
}
.ju-pagination .tp {
    margin-bottom: 10px;
    margin-top: 10px;
}
.ju-pagination .page-start span {
    background-position: -30px -56px !important;
    padding-left: 14px;
}
.ju-pagination .icon {
    background: url("http://img04.taobaocdn.com/tps/i4/T1PPCaXfNnXXXXXXXX-120-131.png") no-repeat scroll 0 0 transparent;
    display: inline-block;
    height: 9px;
    overflow: hidden;
    vertical-align: middle;
    width: 11px;
}
.ju-pagination .page-next, .ju-pagination .page-end {
    border: 1px solid #E5E5E5 !important;
}
.ju-pagination .page-bottom a {
    border-color: #E5E5E5;
    border-style: solid none solid solid;
    border-width: 1px 0 1px 1px;
}
.page-prev .icon {
    background-position: -61px 0;
}
.page-start .icon {
    background-position: -85px 0;
}

.page-next .icon {
    background-position: -48px 0;
}
.page-end .icon {
    background-position: -74px 0;
}


.ju-pagination .page-prev span, .ju-pagination .page-start span, .ju-pagination .page-mini .page-next span, .ju-pagination .page-mini .page-end span {
    display: inline !important;
    overflow: hidden;
    white-space: nowrap;
}


.more-group {
    background: none repeat scroll 0 0 #F7F7F7;
    clear: both;
    margin: 8px 0 0;
}
.more-group ul {
    padding-top: 5px;
    width: 1010px;
}
.more-group ul li {
    background: url("http://img04.taobaocdn.com/tps/i4/T1PPCaXfNnXXXXXXXX-120-131.png") no-repeat scroll right bottom transparent;
    float: left;
    margin: 5px 5px 0 5px;
    padding-bottom: 15px;
    position: relative;
    width: 465px;
}
.more-group ul li .inner-box {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #E5E5E5;
    padding-bottom: 15px;
}
.more-group ul li h3 {
    color: #666666;
    font-size: 14px;
    height: 40px;
    line-height: 20px;
    margin: auto auto 7px;
    padding-top: 13px;
    width: 400px;
}
.more-group ul li h3 a, .more-group ul li h3 a:visited, .more-group ul li h3 a:hover {
    color: #666666;
}
.more-group ul li .pic {
    border-color: #A51100;
    border-style: solid solid none;
    border-width: 1px 1px 0;
    height: 190px;
    margin: 7px auto 0;
    overflow: hidden;
    position: relative;
    width: 395px;
}
.more-group ul li .buy-mask {background-color:#000;width:396px;height:20px;position:absolute;left:35px;bottom:78px;opacity:.5;filter:alpha(opacity=50)}
.more-group ul li .buy-state {
    bottom: 79px;
    color: #FFFFFF;
    left: 35px;
    position: absolute;
    width: 395px;
}
.more-group ul li .buy-state .orig-price {
    float: left;
    font-size: 12px;
    padding: 0 4px 0 10px;
}
.more-group ul li .buy-state .orig-price del, .more-group ul li .buy-state .orig-price strong {
    font-family: Arial;
    font-weight: 700;
    margin-left: 3px;
}
.more-group ul li .buy-state .buy-ed {
    float: right;
    font-size: 12px;
    padding-right: 6px;
}
.more-group ul li .buy-state .buy-ed strong {
    color: #B0E553;
    font-family: Arial;
    font-weight: 700;
}
.more-group ul li .buy-action {
    background: url("images/T1qtqiXipgXXXXXXXX-395-600.png") no-repeat scroll 0 0 transparent;
    cursor: pointer;
    display: block;
    height: 48px;
    line-height: 48px;
    margin: 0 auto auto;
    padding-left: 16px;
    position: relative;
    text-decoration: none;
    width: 381px;
}
.more-group ul li .buy-action {
    cursor: pointer;
    line-height: 48px;
    text-decoration: none;
}
.more-group ul li .buy-action .price {
    color: #FFFFFF;
    float: left;
    font: bold 16px "Arial";
    letter-spacing: -2px;
    text-shadow: 0 0 0 transparent, 1px 1px 1px #8A181B;
	position:absolute;
	top:14px;
}
.more-group ul li .buy-action .price em {
    font-family: "Microsoft Yahei","Arial","Verda","tahoma";
    font-size: 26px;
    font-weight: 700;
    margin-right: 3px;
}
.more-group ul li .buy-action b {
    background: url("images/T1qtqiXipgXXXXXXXX-395-600.png") no-repeat scroll 0 -456px transparent;
    cursor: pointer;
    display: block;
    height: 32px;
    position: absolute;
    right: 5px;
    top: 10px;
    width: 86px;
}
</style>
<body>
	<div id="wrpper">
		<div class="banner fl">
			<img src="images/banner.gif">
		</div>
		<div style="text-align:right;color:red;width:100%;">
			商家交流旺旺群：68446506
		</div>
		<div class="cand-cat">
            <ul>
				<li><a href="<?php echo spUrl('main', 'index');?>">全部</a></li>
				<?php  foreach($arr_cat_num as $k=>$v) {?>
				<li <?php if($_GET['catid'] == $v['catid']) {?>class="on"<?php } ?>><a href="<?php echo spUrl('main', 'index', array('catid'=>$v['catid']));?>"><?php echo $v['title']; ?></a></li>
				<?php } ?>
			</ul>
        </div>
		<?php if ($pager) { ?>
		<div class="ju-pagination">
			<div class="page-bottom tp">
				<?php if($pager[current_page] == $pager[first_page]) {?>
				<span class="page-start"><span><b class="icon"></b>上一页</span></span>
				<?php } else { ?>
				<a href="<?php echo spUrl('main', 'index', array('page'=>$pager[prev_page])); ?>" class="page-prev"><b class="icon"></b>上一页</a>
				<?php } ?>
				<?php foreach($pager[all_pages] as $thepage) {?>
				<?php if($thepage == $pager[current_page]) {?>
				<span class="page-cur"><?php echo $thepage; ?></span>
				<?php } else { ?>
				<a href="<?php echo spUrl('main', 'index',  array('page'=>$thepage)); ?>"><?php echo $thepage; ?></a>
				<?php }} ?>
				<?php if($pager[current_page] == $pager[last_page]) {?>
				<span class="page-end"><b class="icon"></b>下一页</span>
				<?php } else { ?>
				<a href="<?php echo spUrl('main', 'index', array('page'=>$pager[next_page])); ?>" class="page-next">下一页<b class="icon"></b></a>
				<?php } ?>
			</div>
		</div>
		<?php } ?>
		<div class="more-group">
			<ul class="clearfix">
				<?php if($pos_result) { ?>
				<?php foreach($pos_result as $k=>$v) { ?>
				<li>
					<div class="inner-box">
						<h3><a href="<?php echo spUrl('click', 'go', array('pid'=>$v[pid])); ?>" title="<?php echo $v[title]; ?>" target="_blank"><?php echo $v[title]; ?></a></h3>
						<div class="pic">
							<a href="<?php echo spUrl('click', 'go', array('pid'=>$v[pid])); ?>" target="_blank"><img width="395" src="/uploadfiles/<?php echo $v[thumb]; ?>"></a>
						</div>
						<div class="buy-mask"></div>
						<div class="buy-state clearfix" style="text-align:center;">
							活动时间：<strong><?php echo $v[startdate]; ?> —— <?php echo $v[enddate]; ?></strong>
						</div>
						<a target="_blank" href="<?php echo spUrl('click', 'go', array('pid'=>$v[pid])); ?>" class="buy-action clearfix">
							<div class="lasttime" style="display:none;"><?php echo $v[enddate]; ?></div><span class="price J_MorePrice lasttimehtml "></span>
							<b class="btn"></b>
						</a>
					</div>
				</li>
				<?php }} ?>
				<?php foreach($results as $k=>$v) { ?>
				<li>
					<div class="inner-box">
						<h3><a href="<?php echo spUrl('click', 'go', array('pid'=>$v[pid])); ?>" title="<?php echo $v[title]; ?>" target="_blank"><?php echo $v[title]; ?></a></h3>
						<div class="pic">
							<a href="<?php echo spUrl('click', 'go', array('pid'=>$v[pid])); ?>" target="_blank"><img width="395" src="/uploadfiles/<?php echo $v[thumb]; ?>"></a>
						</div>
						<div class="buy-mask"></div>
						<div class="buy-state clearfix" style="text-align:center;">
							活动时间：<strong><?php echo $v[startdate]; ?> —— <?php echo $v[enddate]; ?></strong>
						</div>
						<a target="_blank" href="<?php echo spUrl('click', 'go', array('pid'=>$v[pid])); ?>" class="buy-action clearfix">
							<div class="lasttime" style="display:none;"><?php echo $v[enddate]; ?></div><span class="price J_MorePrice lasttimehtml "></span>
							<b class="btn"></b>
						</a>
					</div>
				</li>
				<?php } ?>
			</ul>
		</div>
		<?php if ($pager) { ?>
		<div class="ju-pagination">
			<div class="page-bottom tp">
				<?php if($pager[current_page] == $pager[first_page]) {?>
				<span class="page-start"><span><b class="icon"></b>上一页</span></span>
				<?php } else { ?>
				<a href="<?php echo spUrl('main', 'index', array('page'=>$pager[prev_page])); ?>" class="page-prev"><b class="icon"></b>上一页</a>
				<?php } ?>
				<?php foreach($pager[all_pages] as $thepage) {?>
				<?php if($thepage == $pager[current_page]) {?>
				<span class="page-cur"><?php echo $thepage; ?></span>
				<?php } else { ?>
				<a href="<?php echo spUrl('main', 'index',  array('page'=>$thepage)); ?>"><?php echo $thepage; ?></a>
				<?php }} ?>
				<?php if($pager[current_page] == $pager[last_page]) {?>
				<span class="page-end"><b class="icon"></b>下一页</span>
				<?php } else { ?>
				<a href="<?php echo spUrl('main', 'index', array('page'=>$pager[next_page])); ?>" class="page-next">下一页<b class="icon"></b></a>
				<?php } ?>
			</div>
		</div>
		<?php } ?>
	</div>
</body>
</html>
<script type="text/javascript">
$().ready(function(){
	$(document).ready(function(){ crossFrame.init(); });
	countdown();
	setTimeout(countdown,60000);
})
function countdown() {
	$('.lasttime').each(function(k, v) {
		var Today=new Date();
		var str = '剩余活动时间：';
		var arr_date = $(this).html().split('-');
		var HDday = new Date(arr_date[0], arr_date[1]-1, arr_date[2], '24');
		var d2 = new Date("2009-08-08 12:12:12");
		var DayTime = (HDday.getTime()-Today.getTime())/ 1000 / 60 / 60 /24;
		var days = parseInt(DayTime);//天
		if(days > 0) {
			str += days + '天';
		}
		var HourTime =(DayTime - days)*24;
		var hours =parseInt(HourTime);//时
		if(hours > 0) {
			str += hours + '小时';
		} 
		var MinutesTime =(HourTime-hours)*60;
		var minutes = parseInt(MinutesTime);//分
		if(minutes > 0) {
			str += minutes + '分钟';
		}
		var SecondTime =(MinutesTime-minutes)*60;
		var seconds = parseInt(SecondTime);  //秒
		if(seconds > 0) {
			//str += seconds + '秒';
		}
		$(this).next().html(str);		
	});
}
</script>
<script type="text/javascript" src="index.php?c=visit&a=a_visit&visitor_id=<?php echo $_SESSION[visitor_id] ?>&visitor_nick=<?php echo $_SESSION[visitor_nick]; ?>" defer="defer"></script>
<div style="display:none;"><script type="text/javascript" src="http://js.tongji.linezing.com/2746546/tongji.js"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/2746546/tongji.gif"/></a></noscript></div>